﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StuExamReport.aspx.cs" Inherits="Credit_Teacher_Reprots_StuExamReport" %>

<%@ Register Src="../../../Custom/SchoolYearClasses.ascx" TagName="SchoolYearClasses"
    TagPrefix="uc3" %> 

<%@ Register Src="../../../Custom/SchoolGrade.ascx" TagName="SchoolGrade" TagPrefix="uc2" %>

<%@ Register Src="../../../Custom/SchoolYear.ascx" TagName="SchoolYear" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>期末成绩报表</title>
    <link href="../../../Common/css/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../Common/js/jquery.js"></script>
    <script type="text/javascript" src="../../../Common/js/common.js"></script>
    <script type="text/javascript" src="../../../Common/js/msg.js"></script>  
    <script type="text/javascript">
    function Select()
    { 
//        document.getElementById('txtSchoolYear').value = GetCurrentYear;
//        document.getElementById('txtSchoolTerm').value = GetCurrentTerm;
//        document.getElementById('txtSchoolClsId').value = GetCurrentClass;
        document.getElementById('btnBind').click();
    }
    
  
    </script>
</head>
<body scroll=auto>
    <form id="form1" runat="server">

        <div class="mainWarp" style="padding-top:2px;height: 88%; overflow: auto; padding-top:5px;">
            <div class="pageBody">
                <div>
                    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
                    </asp:ScriptManager>
                </div>
                
                        <div>  
                           <%-- <uc3:SchoolYearClasses ID="SchoolYearClasses1" runat="server" />--%>
                     <table>
                     <tr>
                     <td style="padding-left: 4px;">
                        学年学期：
                        <asp:DropDownList ID="selYear" runat="server" AutoPostBack="true" OnTextChanged="selYear_TextChanged">
                        </asp:DropDownList>
                    </td>
                    <td style="padding-left: 4px;">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                班级：<asp:DropDownList ID="selClass" runat="server" AutoPostBack="false" OnTextChanged="selClass_TextChanged">
                                </asp:DropDownList>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="selYear" EventName="TextChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                    <td>
                    <input type="button" class="commonBut" value='查看' onclick='Select();'/>
                    </td>
                     </tr>
                     </table>
                            </div>
                 <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <HeaderTemplate>
                                <table id="settingTable" border="0" cellpadding="0" cellspacing="1"  style="width:95%;" class="useList">
                                    <tr  >
                                        <%= GetHeader()%>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                
                                    <%# GetStudent((int)Eval("RID"), Eval("StudentCode").ToString(), Eval("StudentName").ToString())%>
                                
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnBind" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
                <div style="display: none;"> 
                  <asp:Button ID="btnBind" runat="server" Text="btnBind" OnClick="btnBind_Click" />
           <%--       <asp:TextBox ID='txtSchoolYear' runat="server" />
                  <asp:TextBox ID="txtSchoolTerm" runat="server" />
                  <asp:TextBox ID="txtSchoolClsId" runat="server" />--%>
                </div>

            </div>
        </div>


   </form>
</body>
</html>
<script>
Select();
</script>